#[root@localhost script]# cat start_ovn_controller.sh 
#/usr/share/ovn/scripts/ovn-ctl start_controller
#[root@localhost script]# cat start_ovn_northd.sh 
#/usr/share/ovn/scripts/ovn-ctl start_northd
#[root@localhost script]# cat start_ovs.sh 
#/usr/share/openvswitch/scripts/ovs-ctl start --system-id=random

#ovn控制器执行
#start_ovs.sh && start_ovn_northd.sh && start_ovn_controller.sh



#/usr/share/ovn/scripts/ovn-ctl start_controller
#/usr/share/ovn/scripts/ovn-ctl start_northd
/usr/share/openvswitch/scripts/ovs-ctl start --system-id=random


/usr/share/ovn/scripts/ovn-ctl --db-sb-addr=192.168.188.187   --db-sb-cluster-local-addr=192.168.188.187 start_sb_ovsdb
ovn-sbctl set-connection ptcp:6642
/usr/share/ovn/scripts/ovn-ctl --db-sb-addr=192.168.188.187   --db-sb-cluster-local-addr=192.168.188.187 run_sb_ovsdb

/usr/share/ovn/scripts/ovn-ctl --db-nb-addr=192.168.188.187   --db-nb-cluster-local-addr=192.168.188.187 start_nb_ovsdb
ovn-nbctl set-connection ptcp:6641
 /usr/share/ovn/scripts/ovn-ctl --db-nb-addr=192.168.188.187   --db-nb-cluster-local-addr=192.168.188.187 run_nb_ovsdb

/usr/share/ovn/scripts/ovn-ctl start_controller

ovn-northd --pidfile --ovnnb-db=tcp:192.168.188.199:6641,tcp:192.168.188.198:6641,tcp:192.168.188.187:6641   --ovnsb-db=tcp:192.168.188.199:6642,tcp:192.168.188.198:6642,tcp:192.168.188.187:6642 --log-file=/var/log/ovn/ovn-northd.log




